package cn.zkrt.iotms.module.iot.dto;

import cn.zkrt.iotms.module.iot.validate.ValidationCategory;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author: xulinyu
 * date:  2024/9/29 11:05
 */
@Data
public class DeviceAttributeBDTO {

    @NotEmpty(message = "设备属性ID不能为空",groups = {ValidationCategory.Update.class})
    private String id;

    @ApiModelProperty("设备id")
    @NotEmpty(message = "设备不能为空")
    private String deviceId;

    @ApiModelProperty("设备类型属性ID")
    private String typeAttributeId;

    @ApiModelProperty("设备类型属性CODE")
    @NotEmpty(message = "设备类型属性CODE不能为空")
    private String typeAttributeKey;


    @ApiModelProperty("设备类型属性名称")
    @NotEmpty(message = "设备类型属性名称不能为空")
    private String typeAttributeName;

    @ApiModelProperty("传入类型 1-传感器 2-手动开关 3-故障 ")
    private String deviceFrom;
}
